import request from '@/utils/request'

// 查询影厅信息列表
export function listHall(query) {
  return request({
    url: '/cinema/cinema/hall/list',
    method: 'get',
    params: query
  })
}

// 查询影厅信息详细
export function getHall(hallId) {
  return request({
    url: '/cinema/cinema/hall/' + hallId,
    method: 'get'
  })
}

// 新增影厅信息
export function addHall(data) {
  return request({
    url: '/cinema/cinema/hall',
    method: 'post',
    data: data
  })
}

// 修改影厅信息
export function updateHall(data) {
  return request({
    url: '/cinema/cinema/hall',
    method: 'put',
    data: data
  })
}

// 删除影厅信息
export function delHall(hallId) {
  return request({
    url: '/cinema/cinema/hall/' + hallId,
    method: 'delete'
  })
}

// 导出影厅信息
export function exportHall(query) {
  return request({
    url: '/cinema/cinema/hall/export',
    method: 'get',
    params: query
  })
}